﻿using DDDNorthWind.Core.Domain.Identity;

namespace DDDNorthWind.Core.Test.ValueObject
{
    public sealed class PeopleId : IdentityKey<string >
    {
        public PeopleId(string id)
        {
            Id = id;
        }

        public PeopleId() { }


        public override string Id { get; protected set; }

        public override bool Equals(string other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;

            return Id.Equals(other);
        }
    }
}